package be.fomp.jeve.application.data.standard.sovereignty;

import org.jdom.Element;

import be.fomp.jeve.application.data.standard.Sovereignty.SolarSystem;

final class SolarSystemImpl implements SolarSystem{
	static final long serialVersionUID = 1L;
	
	private Integer solarSystemID;
	private Integer allianceID;
	private Integer constellationSovereignty;
	private Integer sovereigntyLevel;
	private Integer factionID;
	private String solarSystemName;

	SolarSystemImpl(Element solarSystemElement) {
		this.solarSystemID =            Integer.valueOf(solarSystemElement.getAttributeValue("solarSystemID"));
		this.allianceID =               Integer.valueOf(solarSystemElement.getAttributeValue("allianceID"));
		this.constellationSovereignty = Integer.valueOf(solarSystemElement.getAttributeValue("constellationSovereignty"));
		this.sovereigntyLevel =         Integer.valueOf(solarSystemElement.getAttributeValue("sovereigntyLevel"));
		this.factionID =                Integer.valueOf(solarSystemElement.getAttributeValue("factionID"));

		this.solarSystemName = solarSystemElement.getAttributeValue("solarSystemName");
	}

	public Integer getSolarSystemID()            {return this.solarSystemID;}
	public Integer getAllianceID()               {return this.allianceID; }
	public Integer getConstellationSovereignty() {return this.constellationSovereignty;}
	public Integer getSovereigntyLevel()         {return this.sovereigntyLevel;}
	public Integer getFactionID()                {return this.factionID;}
	public String getSolarSystemName()           {return this.solarSystemName;}
}
